<%-- 
    Document   : mainForm
    Created on : Jun 3, 2012, 3:29:02 PM
    Author     : tri
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %>

<jsp:useBean id="products" class="assignment.process.productSAXProcessor" scope="request"/>
<c:set var="list" value="${products}"/>
<c:if test="${not empty list}">
    <%products.marshallXMLProduct(application.getRealPath("/") +"WEB-INF/Product/products.xml" ); %>
    <c:import url ="WEB-INF/Product/products.xml" var ="xml"/>
    <c:import url ="WEB-INF/Product/productsxsl.xsl" var= "xslt"/>
    <x:transform xml="${xml}" xslt="${xslt}"/>
</c:if>
